package com.ccb.sc.common.modules.goods.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ccb.sc.common.entity.TreeEntity;
import com.ccb.sc.common.enums.ValidStatus;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 产品分类
 * </p>
 *
 * @author ken
 * @since 2020-09-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tb_category")
public class Category extends TreeEntity {

    private static final long serialVersionUID=1L;

    /**
     * 分类名称
     */
    @TableField("name")
    private String name;

    /**
     * icon
     */
    @TableField("icon")
    private String icon;

    /**
     * 图片
     */
    @TableField("picture")
    private String picture;

    /**
     * 父级id
     */
    @TableField("parent_id")
    private Long parentId;

    /**
     * 上级链路
     */
    @TableField("parent_ids")
    private String parentIds;

    /**
     * 排序号
     */
    @TableField("orders")
    private Integer orders;

    /**
     * 类型 1积分商城分类 2.直播商品分类
     */
    @TableField("type")
    private Long type;



    @TableField("status")
    private ValidStatus status;

}
